adapt to libsolv 3b3dd72: obsoleting by an installonly package is erasing.
speedup fetching rpmdb a bit by reusing what we can from the old cache.

Suggested by mls, thank you!