[PATCH 5/7] server: Add a helper to call async_request_complete() while allocating new memory.