[Debugger] Set the name of the main thread to "Main THread" if no other name has been set

Fixes bug #21997