rpm: fix caching of provides

Now each provide is resolved really once.