[PATCH 6.6 375/676] perf trace: Do not lose last events in a race