HUE-1750 [core] Make IPv4 or IPv6 pluggable for Thrift clients

Update thrift lib to use configurable socket family.
Update thrift utils tests to use IPv4.