XWIKI-9589: The wrong extension is installed if an extension with that extension id as feature is installed in another wiki
* Resolve using ExtensionDependency when a version range is specified. Use the requested extension id and version otherwise.
* Pass the extension namespace when resolving an extension dependency.