fix: Ensure lock file is unlocked