Fix rubygems timeout.rb segfaults on REE

Fixes #80, https://github.com/sstephenson/ruby-build/wiki#187-p302-and-lower-segfaults-for-https-requests-on-os-x-107