added octree scene stats locking and unlocking