[PATCH 5.3 322/344] md: only call set_in_sync() when it is expected to succeed.