pyside: install sphinx at build-time to build docs

Also provide an option to skip building docs, though it doesn't
seem to save much time overall and may be removed.

Closes #27228.