update TCPClient example code

Replaced `delay(1000);` with `while(!Serial.available()) SPARK_WLAN_Loop();`.

Original solution here: 

https://community.spark.io/t/basic-tcp-example-always-returns-connection-failed-on-serial-solved/5355