BUG: :func:'read_pickle' and :func:'to_pickle' now accept URL and buf…
…fer as well as file path GH30163

- [ ] closes #30163
- [ ] tests passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
