runtime: account for callbacks in checkdead on Windows
runtime: account for callbacks in checkdead on Windows

When a callback runs on a different thread in Windows, as in the
runtime package test TestCallbackInAnotherThread, it will use the
extra M. That can cause the test in checkdead to fail incorrectly.
Check whether there actually is an extra M before expecting it.

I think this is a general problem unrelated to timers. I think the test
was passing previously because the timer goroutine was using an M.
But I haven't proved that. This change seems correct, and it avoids
the test failure when using the new timers on Windows.

Updates #27707

Change-Id: Ieb31c04ff0354d6fae7e173b59bcfadb8b0464cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/174037
Reviewed-by: Keith Randall <8c99c3a9284e493be632950b84cd789d08ed3e9d@golang.org>

akutz/go,golang/go,cloudflare/go,nawawi/go,cloudflare/go,josharian/go,josharian/go,cloudflare/go,nawawi/go,CAFxX/go,golang/go,golang/go,nawawi/go,CAFxX/go,CAFxX/go,golang/go,CAFxX/go,CAFxX/go,nawawi/go,cloudflare/go,cloudflare/go,cloudflare/go,golang/go,CAFxX/go,nawawi/go,golang/go,josharian/go,akutz/go,CAFxX/go,nawawi/go,josharian/go,nawawi/go,nawawi/go,akutz/go,akutz/go,josharian/go,josharian/go,josharian/go,golang/go,cloudflare/go,golang/go,akutz/go,CAFxX/go,akutz/go,cloudflare/go,akutz/go,akutz/go,josharian/go