for_each_recent_reflog_ent(): simplify opening of a reflog file