pub fn with_lock_retry<F, R>(repo_path: &Path, operation: F) -> Result<R>where F: Fn() -> Result<R, Error>,
Execute a git2 operation with automatic stale lock cleanup and retry If the operation fails with a lock error, checks for stale locks and retries once