Add threadsafety bits for boost-spirit.