increase request counter before an upstream cleanup because the cleanup decreases the counter via ngx_http_finalize_request(r, NGX_DONE), the bug was introduced in r3050