Fix crash when lock file doesn't exist