Don't stat() queue when it is declared with nowait = true
Cover passive = false case
Simplify.
Merge bug26221