Conditional variable primitive for generator flow-control.