Label the state-machine loop in blocking functions.

Unlabeled continue statements were sometimes continuing the wrong loop.