Fix the race that meant pages could be written after the root.
refs WT-954, WT-963.
WT-954 Checkpoint optimizations
WT-963 Fix fast checkpoints