Fix TCP keepalive use in UNIX systems
avoid crash if we dont have new wsi

Signed-off-by: Andy Green <andy.green@linaro.org>