[ticket/12847] Allow the extensions to say if they can be enabled

https://tracker.phpbb.com/browse/PHPBB3-12847

PHPBB3-12847