This fixes a race condition when two threads/processes try to `makeOpenPath` the same path simultaneously.