performance tweak : save $this->getModules() as variable during loop

on Zend\ModuleManager\ModuleManager::onLoadModules