namespaces: move get_mq() inside #ifdef CONFIG_SYSCTL