aio: test node->deleted before calling io_flush