Upstream: fixed previous commit.

Store r->connection on stack to make sure it's still available if request
finalization happens to actually free request memory.


git-svn-id: svn://svn.nginx.org/nginx/trunk@5114 73f98a42-aea0-e011-b76d-00259023448c