Allow RubyGems tests to run without OpenSSL

This may make RubyGems work in general without OpenSSL as well, but
security features and HTTPS downloads will be disabled.

Addresses part of ruby bug #8557