sipdump: use localtime_r() for a safer multi-thread usage