[PATCH 6.12 167/175] md: prevent incorrect update of resync/recovery offset