[Logging] Fix Thread ID in log messages.