eal: introduce API for getting thread name