Address data race seen with static variable: fdb_initialized
Address data race seen with static variable: fdb_initialized

WARNING: ThreadSanitizer: data race (pid=13543)
  Write of size 1 at 0x00000168ca80 by thread T1 (mutexes: write M10):
    #0 fdb_init /home/abhinav/couchbaseTS/forestdb/src/forestdb.cc:737 (fdb_functional_test+0x000000590a77)
    #1 fdb_open /home/abhinav/couchbaseTS/forestdb/src/forestdb.cc:800 (fdb_functional_test+0x000000590f34)
    #2 multi_thread_client_shutdown(void*) /home/abhinav/couchbaseTS/forestdb/tests/functional/fdb_functional_test.cc:2006 (fdb_functional_test+0x0000004d8041)

  Previous read of size 1 at 0x00000168ca80 by thread T2:
    #0 fdb_init /home/abhinav/couchbaseTS/forestdb/src/forestdb.cc:688 (fdb_functional_test+0x00000059067a)
    #1 fdb_open /home/abhinav/couchbaseTS/forestdb/src/forestdb.cc:800 (fdb_functional_test+0x000000590f34)
    #2 multi_thread_client_shutdown(void*) /home/abhinav/couchbaseTS/forestdb/tests/functional/fdb_functional_test.cc:2006 (fdb_functional_test+0x0000004d8041)

Change-Id: Ibadddddcd173957c2adf476350f95c488764687f
Reviewed-on: http://review.couchbase.org/63235
Reviewed-by: Sundararaman Sridharan <333a3f71d3ad6e01fc953c4fa06bc1f3cd014910@couchbase.com>
Reviewed-by: Chiyoung Seo <fcffc23db27b19ee4ebba46695ee6b50e09216a2@couchbase.com>
Tested-by: Chiyoung Seo <fcffc23db27b19ee4ebba46695ee6b50e09216a2@couchbase.com>

couchbase/forestdb,wurikiji/forestdb,hisundar/forestdb,wurikiji/forestdb,hisundar/forestdb,couchbase/forestdb