builtin/reflog: rewrite ref functions to take an object_id argument