Ensure we look at EVP_MD_CTX_FLAG_KEEP_PKEY_CTX in non-legacy code