md: flush ->event_work before stopping array.