btree: resurrect print_btree()

This reverts commit 71bee, since print_btree() is used in test-btree.