Moving threadsafe cache code into module
Make ActiveSupport::Cache::CouchbaseStore threadsafe.