ref_transaction_commit(): remove the local flags variable