pub fn acquire_session_lock(session_dir: &Path) -> Result<File>
Acquire an exclusive file lock on the session directory.
Prevents concurrent access from other processes. Returns an error if the session is already in use.