ref_transaction_commit(): remove local variables n and updates