PROTON-2613: TLS OpenSSL library: fix SSL_write configuration for partial writes