Fix concurrency bug in octree_server::reduce()