make GlobalVocabulary thread-safe