Better thread-safety in ISODateTimeFormat

Fixes #45