reparent_thread: fix the "is it traced" check