Fix for stale lock file test