pub fn lock(path: &Path) -> Result<File>
Stable inode lock. Never unlink it; atomic replacement is for data only.