md/raid1: update next_resync under resync_lock.