CBQE-993 Wait for persistence before view query validation

Change-Id: I015c1527be45118498035e42f8045b5b51598e06
Reviewed-on: http://review.couchbase.org/24192
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>