Follow runtime dependency rather than declared dependency.

In practice the difference between these two methods is when a package is provided by a fragment: getProviderWiring will return the resolved host (which is what we're really interested in) while getCapability leads to the fragment itself.