Make sure the tree is marked dirty before the page is marked dirty.
(The tree's modified flag is cleared by the checkpoint thread, set it
and insert a barrier before dirtying the page, don't let checkpoint
get in and clean the page before we've managed to dirty the tree.)
I hoped this was #713, but apparently not -- regardless, it's a better
way to shape the world, leave it in.