[PATCH 5.15 205/371] md/raid10: factor out code from wait_barrier() to stop_waiting_barrier()