Fix repo cleanup in case of upgrade error
Calling the ostree_sysroot_cleanup() function with initialized error variable cause assertion: "_ostree_repo_lock_push: assertion 'error == NULL || *error == NULL' failed" This issue is preventing correct repository prune in case of any problem occurred during upgrade.