[PATCH 6.2 140/173] perf/core: Fix the same task check in perf_event_set_output