Add support for getting the current thread's name