[PATCH 5.12 630/677] powerpc/perf: Fix the threshold event selection for memory events in power10