Trying to fix race condition in LockFile.release().