thread-safe strerror(3)