pub fn try_lock_shared(file: &File) -> Result<bool>
Attempts to acquire a shared process-held lock without blocking.
Returns Ok(false) only when another process currently owns an exclusive lock.
Ok(false)