While fixing an issue with edit_restricted_templates missing for hewiki ( https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/497025/ ) I noticed currently each wikipedia should hard code the name of InUse tempalte in edit_restricted_templates config parameter.
Would be nice to automatically populate it based on Wikidata: https://www.wikidata.org/wiki/Q5617064
We can do it as lazy fallback (if there is no config for that Wikipedia, only then to fetch Wikidata)