implement ReadWriteLock for VoxelTree to fix crashes in VoxelServer