CI: Check private function not used across modules
- [x] xref https://github.com/pandas-dev/pandas/pull/32942#issuecomment-609893282
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
