[PATCH 4.17 150/220] md: fix two problems with setting the "re-add" device state.