cache-tree.c::cache_tree_find(): simplify internal API