This reverts commit 1c5cb4f334
The set b, which temporarily stores ChunkPositions, will be a threadLocal variable to avoid concurrent modification of it, when multiple threads use it. The previous approach in commit 1c5cb4f334 had worked too, but required the accessing thread to wait for each other, because of the lock they were taking.