Fix # 7188 - parent provider with same name as child provider breaks autoloader

See http://projects.puppetlabs.com/issues/7188

The workaround in Puppet 3 is still needed for Puppet 2.x.