Make SnakeYAML thread safe.