[PATCH 5.10 204/459] perf trace: Do not lose last events in a race