pub fn state_lock_path_for(doc: &Path) -> Result<PathBuf>
Compute <project_root>/.agent-doc/locks/<hash>.lock for a document.
<project_root>/.agent-doc/locks/<hash>.lock