kernel32/tests: Cancel IO before returning from function. Otherwise we will have stack use-after-return when the pending IO completes.