[PULL 14/27] util: add API to fetch the current thread name