io_uring: refactor io_submit_flush_completions()