[stable-5.4] md: Set prev_flush_start and flush_bio in an atomic way