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

This closes #248

Signed-off-by: Roger Meier <roger@apache.org>