perf tools: Use tid for finding thread