BUG: Fix `json_normalize` when calling with list `record_path` (#21605)
This PR fixes the bug that caused `json_normalize` to throw `TypeError` when calling with a list `record_path`.

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