Rearranged some i18n tests

Compilation/extraction tests are now properly skipped when gettext
commands are unavailable.
Fixed #21344 -- Typo in docs/ref/models/queries.txt
Add thread-safe CacheHandler
Documentation tweaks
Remove all uses of get_cache