CBQE-0: wait for persistence in xdcr views

Change-Id: Icc00950015f2f7c9883e6e81cfb0bda406c56735
Reviewed-on: http://review.couchbase.org/28739
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: Iryna Mironava <irynamironava@yandex.ru>