[ticket/12759] Cache the lang options earlier

Previously it would re-run on every post

PHPBB3-12759