refs.c: ref_transaction_commit should not free the transaction