[runtime] Add support for setting the thread name on windows. On windows, this will only work when running under a debugger.