Fix for spurious wakeups of the i/o gc thread