More work on TIFF output of Exif.
Make TIFF error message storage thread-safe