expire_reflog(): move dry_run to flags argument