[PATCH 6.1 110/164] perf/core: Fix the same task check in perf_event_set_output