SCTX-1649: Set SO_KEEPALIVE on server sockets

This ensures that a TCP connection is cleaned up on the server, when the
connection is closed on the client without the server knowing (for example, if
a FIN packet is not sent or went missing).

This does not affect idle connections, or long-running XenAPI calls.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #162 from Zhengchai/HFX-1127

HFX-1127: Pick SCTX-1649: Set SO_KEEPALIVE on server sockets to clearwater-sp1-lcm