pub fn lock_path(state_dir: &Path, workspace_root: Option<&Path>) -> PathBuf
Get the lock file path for a state directory and optional workspace root