World:isLocked
Returns if the world is updating its state.

This will return true inside the callbacks from World:setCallbacks.
locked = World:isLocked()
locked boolean Will be true if the world is in the process of updating its state.