thread-safety for GetNeighbors()