put a lock on Message.ToString to avoid concurrency issues (#204)