Adding a mutex around the octree accesses, to hack a stupid bug.