We had to insert a hack to make the namespace registration work.
https://gerrit.wikimedia.org/r/#/c/346153/2/src/WikibaseLexeme.hooks.php
// FIXME: Ugly hack find solution to avoid this line \MWNamespace::getCanonicalNamespaces( true );
We should provide a proper fix by using 'CanonicalNamespaces' hook.