Fixed tracking of newly created threads.