curl: fix HTTPS network timeouts with OpenSSL