GeoModelXml: Enable thread-safety checking.
Enable thread-safety checking and fix warning:
- Use std::abort() instead of exit().
- Don't use DataHandle.
- const cleanup. A few const_casts were unavoidable due to problems with the design of the GeoModel and zlib interfaces.