Backport of "multiqueue: never consider a queue that is not waiting" into 1.18
Backport of !885 (merged) "multiqueue: never consider a queue that is not waiting".
Commits:
Backport of !885 (merged) "multiqueue: never consider a queue that is not waiting".
Commits: