rbconfig is not used in these files

remove unused requires
Merge pull request #13500 from arunagw/remove-unused-require

rbconfig is not used in these files remove unused requires
doc fix. Use `sess.path` within `open_session`. Closes #13490. [ci skip]