Avoid unnecessary getgrall code. Use getgrouplist if available
Lint fixes for getgroupall code
Merge pull request #11222 from dlanderson/getgrouplist

Avoid unnecessary getgrall code. Use getgrouplist if available