[PATCH 11/12] util: add support for formatting thread info in messages