sha1_name: convert disambiguate_hint_fn to take object_id