fix broken thread tree traversal in machine.cpp
fix broken thread tree traversal in machine.cpp

dicej/avian,lwahlmeier/avian,dicej/avian,bgould/avian,badlogic/avian,bgould/avian,getlantern/avian,dicej/avian,getlantern/avian,joshuawarner32/avian,lostdj/avian,MaartenR/avian,bgould/avian,MaartenR/avian,minor-jason/avian,marcinolawski/avian,bgould/avian,marcinolawski/avian,dicej/avian,bigfatbrowncat/avian-pack.avian,marcinolawski/avian,minor-jason/avian,joshuawarner32/avian,lostdj/avian,lostdj/avian,joshuawarner32/avian,badlogic/avian,badlogic/avian,badlogic/avian,bigfatbrowncat/avian-pack.avian,getlantern/avian,getlantern/avian,lostdj/avian,joshuawarner32/avian,minor-jason/avian,marcinolawski/avian,lwahlmeier/avian,MaartenR/avian,ucdseniordesign/avian,MaartenR/avian,lwahlmeier/avian,bigfatbrowncat/avian-pack.avian,ucdseniordesign/avian,minor-jason/avian,bigfatbrowncat/avian-pack.avian,lwahlmeier/avian,ucdseniordesign/avian,ucdseniordesign/avian