use BOOST_SPIRIT_THREADSAFE define instead of mutexes for json_parser