Replace goto's around async_new_op calls with a simpler while loop.