[PATCH 4.14 172/185] md: only call set_in_sync() when it is expected to succeed.