Mark vbucket as dead when it's deleted.
Mark vbucket as dead when it's deleted.

It's possible that ep-engine will omit sending dead state for vbucket
being deleted. In such cases capi_set_view_manager would think that
vbucket is still alive and misconfigure set views. To avoid this we
now also mark vbucket as dead whenever mccouch gets vbucket deletion
command. It's also guaranteed that no active state message will be
delivered to mccouch after deletion unless the bucket is really
recreated.

Change-Id: I924d06d8384fd4e954ebb35c2c27e2a5404cc2e8
Reviewed-on: http://review.couchbase.org/12547
Tested-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>
Reviewed-by: Srinivas Vadlamani <4036f57732a648e71da3ac2c829c8239a16a4c5d@couchbase.com>

mschoch/ns_server,membase/ns_server,ceejatec/ns_server,nimishzynga/ns_server,ceejatec/ns_server,membase/ns_server,nimishzynga/ns_server,pavel-blagodov/ns_server,ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,membase/ns_server,membase/ns_server,nimishzynga/ns_server,membase/ns_server,daverigby/ns_server,mschoch/ns_server,daverigby/ns_server,membase/ns_server,t3rm1n4l/ns_server,daverigby/ns_server,nimishzynga/ns_server,vzasade/ns_server,mschoch/ns_server,ceejatec/ns_server,pavel-blagodov/ns_server,ceejatec/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,mschoch/ns_server,vzasade/ns_server,vzasade/ns_server,pavel-blagodov/ns_server,vzasade/ns_server,ceejatec/ns_server,pavel-blagodov/ns_server,t3rm1n4l/ns_server,t3rm1n4l/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server