CONC-555 appverifier error in schannel_free_cert_context
CONC-555 appverifier error in schannel_free_cert_context

It looks like CertFreeCertificateContext() would try to access
freed memory.

Fix it by using CERT_STORE_NO_CRYPT_RELEASE_FLAG when setting private key
in certificate, i.e avoid releasing the crypto provider when certificate
is freed.

Note:
My attempts to fix with less code , i.e just omit CryptReleaseContext(),
failed, there was a small memory leak left after freeing each SSL
connection.

MariaDB/mariadb-connector-c,MariaDB/mariadb-connector-c,MariaDB/mariadb-connector-c