Avoid creating any new threadpool threads while the runtime is suspended by sdb, since they cannot do any work, causing the code in monitor_thread () to spawn new ones indefinitely. Fixes #6452/11940.