refs.c: constify the sha arguments for ref_transaction_create|delete|update