Fixups for mock on Windows

- Change JMembase test to properly read line from socket (not in one
  gulp)

- Observer.update in BucketsStreamingHandler should set a flag to
  notify the streaming thread; not send it from the thread calling
  notifyAll(). This ensures that if there is not enough TCP write buffer
  space in the socket, the application does not block.

Change-Id: I475d53eb428aa9988bdf8725adf620bee20d5411
Reviewed-on: http://review.couchbase.org/27774
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>