lib/tree: add tree_stat stub; don't lock in tree_{graph,dump}
lib/tree: reverse direction in leaf_half
test: add more random functions
lib/tree: warn about items larger than 10% of node size in leaf_insert