pub fn record_lock_broken(env: &mut Envelope, socket_dir: &Path)
Convenience: record the lock_broken warning event on an envelope. Mirrors the inline pattern at each call site so we don’t drift on the action / errorCode pair.
lock_broken