Follow up socket.tcp_connect() fixing

This patch fixes tcp_connect() for case when server sends
some data immediately after connect.