Allow client to pause reading from the socket, if it can't keep up

(For couchbase/couchbase-lite-ios#502)