md/raid1: fix use-after-free bug in RAID1 data-check code.