refs.c: ref_transaction_commit: distinguish name conflicts from other errors