[PATCH v14 4/5] server: Factor out a complete_async_poll() helper.