Fixed bug related to thread local storages (xmlCleanupParser is not meant to be called here)