[PATCH openEuler-5.10-LTS 18/31] psi: fix wrong iteration in iterate_groups