perf record: Fix .tid and .pid fill-in when synthesizing events