[PATCH 5.15 79/93] perf/core: Fix the same task check in perf_event_set_output