MB-9990: Initialize addrinfo struct before connecting

Ensure that the struct addrinfo is initialized properly
before making a connection

Change-Id: I6f57b30c01a2df50617bd03988471b65e81371f0
Reviewed-on: http://review.couchbase.org/35417
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>