Implement 32-bit compatibility for waitid(2).