[ticket/12685] Setup class loader for extensions only if not in safe mode

PHPBB3-12685