CBQE-1012: add refresh after deinitialize

Change-Id: I46151e2dc5b00019b68a2a080c0ae221a16e8151
Reviewed-on: http://review.couchbase.org/25542
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: Iryna Mironava <irynamironava@yandex.ru>