[PATCH 5.10 490/530] powerpc/perf: Fix the threshold event selection for memory events in power10