refs.c: make ref_update_reject_duplicates take a strbuf argument for errors