pub async fn wait_acquire( map: &AgentLockMap, dir: &Path, key: &str, ) -> Result<AgentLock>
Acquire an agent lock, BLOCKING at both layers: the in-process Mutex first, then the cross-process lockfile.
Mutex