refs.c: change read_ref_at to use the reflog iterators