This avoids having to activate the session (through `req.locale`) and to activate the !TranslationsProxy for any request that doesn't trigger a gettext call (like Chrome request, for example).
The changes also make deactivation a bit more robust (#7253).