rpm-ostree: Store the currently booted deployment
Directly store the currently booted deployment when found instead of iterating over all resources each time we need it.
Also make sure that we gracefully skip operations if the backend is not yet fully set up.