pub fn ledger_lockfile(ledger_path: &Path) -> RwLock<File>