[ticket/12100] Ensure enabled extensions are fresh in Twig environment

PHPBB3-12100

http://tracker.phpbb.com/browse/PHPBB3-12100