asyncify poll()

For #2590.
Not sure how I can create a test case for this.
This function is needed for those functions outside the asm scope, which need to set up the return value. 
Previously we have only `emscripten_sleep`, which does not have a return value.