Fixed HDFSTore.groups() performance.  
No longer walks every node, but rather every group.

- [x] closes #21372
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry