Disable query pages for closed wikis

This change disables all special pages that are considered
'query' types of special pages, for wikis on closed.dblist

Bug: 42436
Change-Id: I40abb47b1cb34c38d42dc7637d16e78567039c30