pub fn open_lock_file(path: &Path) -> Result<File>
Opens or creates an owner-only lock file without truncating it.