MB-11488 Set the thread local to NULL before logging.
MB-11488 Set the thread local to NULL before logging.

Any memory allocations within logging function, which can be
freed later, should not be accounted in a bucket memory usage.

Change-Id: I0a2e5b5a041e77e25708d57fa29ddfd4accb79c5
Reviewed-on: http://review.couchbase.org/38941
Reviewed-by: Chiyoung Seo <fcffc23db27b19ee4ebba46695ee6b50e09216a2@couchbase.com>
Tested-by: Chiyoung Seo <fcffc23db27b19ee4ebba46695ee6b50e09216a2@couchbase.com>

daverigby/kv_engine,jimwwalker/ep-engine,owendCB/ep-engine,daverigby/ep-engine,owendCB/ep-engine,hisundar/ep-engine,hisundar/ep-engine,daverigby/ep-engine,owendCB/ep-engine,teligent-ru/ep-engine,hisundar/ep-engine,jimwwalker/ep-engine,daverigby/ep-engine,sriganes/ep-engine,couchbase/ep-engine,teligent-ru/ep-engine,teligent-ru/ep-engine,daverigby/kv_engine,owendCB/ep-engine,daverigby/ep-engine,couchbase/ep-engine,teligent-ru/ep-engine,couchbase/ep-engine,membase/ep-engine,sriganes/ep-engine,membase/ep-engine,sriganes/ep-engine,jimwwalker/ep-engine,membase/ep-engine,membase/ep-engine,hisundar/ep-engine,daverigby/kv_engine,daverigby/kv_engine,jimwwalker/ep-engine,sriganes/ep-engine,couchbase/ep-engine