md: fix a potential deadlock of raid5/raid10 reshape