Fix a race condition in the lock-file manager: once the lock file is
gone, check for the actual file we care about.