aio-win32: avoid out-of-bounds access to the events array