tree.c: allow read_tree_recursive() to traverse gitlink entries