Work around waitid bug WNOWAIT pre 2.6.22.