pub fn lock_shared(file: &File) -> Result<()>
Pins immutable data against cooperative exclusive eviction until the file closes.