TEZ-1542. Fix a Local Mode crash on concurrentModificationException.
Contributed by Chen He.