Remove some obsolete and incorrect code from UPower and UDisks2 backend
The two inline helpers are not used anywhere, and in case of the UPower backend is even significantly incorrect (i.e. a stale copy of the UDisks2 code). The UDisks2 code was carried over from UDisks(1).