The only code path not protected by the modifyLock is this function but it doesn't have any callers. What concurrency problem is this protecting?