builtin/reflog: convert tree_is_complete to take struct object_id