packagekit: Prefer pk_offline_..._with_flags() API
The https://github.com/PackageKit/PackageKit/pull/505 adds a new PkOffline API (ending with "_with_flags"), which can set whether the call is interactive or not. Prefer these functions, when available, to follow the GsPlugin interactivity flag. In case the PackageKit does not provide this new API, use direct D-Bus calls (copied from the PackageKit and updated).
Related downstream bug report: https://bugzilla.redhat.com/show_bug.cgi?id=2002609