THRIFT-5237: FOLLOWUP: Add a new constructor for TSocket

Workaround for this issue: https://github.com/apache/spark/pull/34280#issuecomment-945814566
diff --git a/lib/java/src/org/apache/thrift/transport/TSocket.java b/lib/java/src/org/apache/thrift/transport/TSocket.java
index eb73e8e..aef2a3f 100644
--- a/lib/java/src/org/apache/thrift/transport/TSocket.java
+++ b/lib/java/src/org/apache/thrift/transport/TSocket.java
@@ -118,6 +118,18 @@
    * Creates a new unconnected socket that will connect to the given host
    * on the given port.
    *
+   * @param host    Remote host
+   * @param port    Remote port
+   * @param timeout Socket timeout and connection timeout
+   */
+  public TSocket(String host, int port, int timeout) throws TTransportException {
+    this(new TConfiguration(), host, port, timeout, timeout);
+  }
+
+  /**
+   * Creates a new unconnected socket that will connect to the given host
+   * on the given port.
+   *
    * @param config  check config
    * @param host    Remote host
    * @param port    Remote port