Add mm_thread_name() function.