If the TP monitor thread is signaled, bound the number of spins when sleeping. Workaround for #8186.