expire_reflog(): move updateref to flags argument