Add special macro to use mutex in text/trie.hpp