Support multiple wait_needed's per variable.

Support multiple calls of wait_needed per dataflow variable.