[corlib] Fix tests to compile when Thread.Suspend/Resume is not supported.