OpenSSL: track shutdown calls. Bug 2864