Fix possible race between DeviceAdded signal and device enumeration

Merged Stefan Brüns requested to merge work/bruns/fix_deviceadded_race_backport into Plasma/5.27

When a device is added after the EnumerateDevices call and before the DeviceAdded signal is connected, the event will go unnoticed.

Cherry-pick of !160 (merged), with also !152 (merged) (drop UPower < 0.99) cherry-picked to avoid merge conflicts.

Merge request reports