Rebuilding the lock file