MB-20054: Account for memory alloc/dealloc in unregisterBucket
MB-20054: Account for memory alloc/dealloc in unregisterBucket

While unregistering a bucket, any memory allocations/deallocations
made should be accounted to the bucket in question.  Hence no
`onSwitchThread(NULL)` call.

Change-Id: I5c260e3aa7e2c8d1fd4ff0a1ca20f2185a7362a8
Reviewed-on: http://review.couchbase.org/65525
Well-Formed: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Will Gardner <cbd6f5d9092d9ef7d5c0510d53bba134b22c02f2@couchbase.com>
Reviewed-by: Jim Walker <1cd02e31b43620d7c664e038ca42a060d61727b9@couchbase.com>

teligent-ru/ep-engine,teligent-ru/ep-engine,daverigby/ep-engine,daverigby/kv_engine,daverigby/kv_engine,membase/ep-engine,teligent-ru/ep-engine,daverigby/ep-engine,daverigby/kv_engine,membase/ep-engine,couchbase/ep-engine,couchbase/ep-engine,couchbase/ep-engine,daverigby/kv_engine,membase/ep-engine,membase/ep-engine,daverigby/ep-engine,teligent-ru/ep-engine,couchbase/ep-engine,daverigby/ep-engine