[PATCH 6.12 283/512] perf trace: Fix leaks of struct thread in set_filter_loop_pids()