Libunit: fixing racing condition in request struct recycling.
Libunit: fixing racing condition in request struct recycling.

The issue occurred under highly concurrent request load in Go applications.
Such applications are multi-threaded but use a single libunit context; any
thread-safe code in the libunit context is only required for Go applications.

As a result of improper request state reset, the recycled request structure was
recovered in the released state, so further operations with this request
resulted in 'response already sent' warnings.  However, the actual response was
never delivered to the router and the client.

nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit