Set socket used for test to non-blocking.

The socket being used to check if a controller is alive was blocking. It
blocked until it was able to connect to the given host and port.

Signed-off-by: Srijan Mishra <srijan23mishra@gmail.com>