https://github.molgen.mpg.de/mariux64/mxq/blob/f3d9fb8c6143c3a884210b212ed4a8514a49a414/helper/gpu-setup#L271 We should keep the lock while we modify the access file, otherwise we race with a new allocation.