BUG: func 'to_pickle' and 'read_pickle' where not accepting URL GH30299
- [ ] closes #30298
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
