Fix resumeThreads when threads dont yield