We might want to write the "top->parent != NULL" test as WT_PAGE_IS_ROOT()?