[PATCH] md: fix raid6 resync check/repair code