aaa: fix flatGroups recursive

incorrect get of groups of group record from principal record.

also clean up the implementation to simplify.

Topic: AAA
Change-Id: Ief72097b8248ffb0c8d51d170a463453170b51c4
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>