Fixing a bug for loading config from local.xml

The existing logic has a problem if the depth of the xml path is more than five, for example, try old cache node in local.xml. Fixed with a key check. By the way, how to add memcache support for magento2?