Cleanup the WSGI app reference from the threadlocal state on every request.

Change-Id: I22f93224047e2b6fd6692423cc27f85b6261f9f8
Closes-Bug: #1279461
Merge "Cleanup the WSGI app reference from the threadlocal state on every request."