[PATCH 4.14 107/157] md: fix two problems with setting the "re-add" device state.