refs.c: change ref_transaction_update() to do error checking and return status