I talked to a Red Hat maintainer who said that the "/var/lib/dnf" (aka "/usr/lib/sysimage/dnf" in your case) folder may not actually do anything. But he wasn't terribly sure. Waiting for more information. Tracker: https://bugzilla.redhat.com/show_bug.cgi?id=2332856