MB-7965: Support "blocking" for flush

Change-Id: Ia02c29deba43ff4961f9dffbe1da9e995a89d971
Reviewed-on: http://review.couchbase.org/43903
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>