[PATCH OLK-5.10 09/25] md/raid10: factor out code from wait_barrier() to stop_waiting_barrier()