THRIFT-2788: enable TCP keep alive for sockets in java lib.

Both client and server sockets in Java were not enable tcp keepalive.

This is important for reap dead tcp connections. If not enabled, the process can not be notified appropriately while remote peer crashed or connection interrupted