Call CRYPTO_set_mem_functions with tor_malloc, tor_realloc and tor_free
#8415 (moved) deals with attaching our memory management code to libevent. We should do the same with OpenSSL.
Note that OpenSSL had some API changes in last few years in this area.