Refactor: libcrmcommon: Add pcmk__tls_client_try_handshake.
This is the guts of pcmktls_client_handshake, broken out into a
separate function that doesn't loop which can be reused elsewhere.
pcmktls_client_handshake can then be reimplemented in terms of this
new function.