isc_time_formattimestamp calls localtime rather than localtime_r when threaded. there are similar issues for gmtime vs gmtime_r.