MB-100: fix replication_with_view_queries_and_ops

now all queries run only once, and we did not wait for the end of tasks

Change-Id: Id8827e704774754baddf8aa2515da2163212cf54
Reviewed-on: http://review.couchbase.org/24321
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>