fix Thread.ident when it is the main thread or a dummy thread #5632
3 files changed