Stop checking conditions if the condition should have timed out.

If a condition will never be satisfied the thread will loop forever until the JVM exits or some other error occurs.