Disable OpenSSL memory contexts for OpenSSL < 3.0.0
OpenSSL 1.1 has already reached end-of-life and since we are experiencing a weird memory leak in the mirror system test on just Ubuntu 20.04 (Focal) with OpenSSL 1.1, we disable the legacy code for enabling memory contexts for OpenSSL < 3.0.0 in this commit.