ref_transaction_commit(): inline call to write_ref_sha1()