gs-flatpak-transaction: Recover app state on failure
The app used in the transaction might not always be the app the transaction created has on control (like sub-runtimes for runtimes), thus recover the state for all apps on transaction failure, to avoid obsolete state being set on the app.