pub fn lock_path() -> PathBufExpand description
Compute the per-tty lock-file path per FR-029.
Resolution order: $TMPDIR > $TMP > std::env::temp_dir(). The filename
incorporates the tty device identifier (Unix only) so each tty gets its
own lock and multi-user systems can safely share /tmp.