Re-enable eviction of dirty pages during checkpoints

Fix the race that meant pages could be written after the root.

refs #954, #963.