[PATCH 6.16 171/183] md: prevent incorrect update of resync/recovery offset