wasi: refactor and enable poll_oneoff() test
This commit refactors and enables the poll_oneoff()
WASI test.
The refactor includes testing additional cases, as well as some
platform specific checks.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines