SPY-150: Check connection status before waiting on the latch.

Change-Id: Ic9de6711a32575c81a499b360923f21d8cfd13ff
Reviewed-on: http://review.couchbase.org/32337
Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>