THRIFT-2900 Wrap Python THttpClient withTimeout in a try/finally

Otherwise the original value of the socket timeout is not restored
properly.