Use thread-safe gmtime.
Merge branch 'pr_threadsafe_gmtime'