UCT tree: Unify tree allocation in tree_alloc_node()