perf script: look up thread using tid instead of pid