Update AnonymousCookieNoCache decorator to not rely on user object.

This matches the logic in the django cache middleware now.