[SPARK-3571] Spark standalone cluster mode doesn't work.

I think, this issue is caused by #1106
Wait, what do you mean? That's just another way of writing the same thing, and we can still start at `shuffledWorkers(curPos)` as before. Why is it less efficient?