OS-3287 ltp waitid returns wrong errno for invalid options