Restore TLS value after Net::HTTP request finished

Update based on @frsyuki's review comment for better TLS handling.
Recover TLS value ':SET_SSL_OP_NO_SSLv3' after Net::HTTP request
finished.