Wait until basic_get_continuations has an element, not continuations

(Fixes a hang in single-threaded mode.)