[RFC 10/17] perf tools: Move thread to traceid_queue