Add support for the wait6(2) system call.