Don't make batched block changes until the chunks are loaded.
Wire the undo system to the batched update system.