[PATCH v6 26/27] util: add support for formatting thread info in messages