GROOVY-3302: Some tests are CPU load dependent

check only if sleep() sleeps for at least the specified duration