t/aio-ring: cleanup the code a bit