builtin/mktree.c: use ALLOC_GROW() in append_to_tree()