OS-2886 implement missing waitid flags