don't require OpenSSL SNI to pass hostname to ssl functions (#22921)

Patch by Donald Stufft.
merge 3.4 (#22921)