[PATCH 4.19 198/211] md: only call set_in_sync() when it is expected to succeed.