pub fn lock_ledger<'lock>( ledger_path: &Path, ledger_lockfile: &'lock mut RwLock<File>, ) -> RwLockWriteGuard<'lock, File>