refs: convert update_ref and refs_update_ref to use struct object_id