refs.c: add a strbuf argument to ref_transaction_commit for error logging