[RigoDaemon] add execute_mainloop() wrapper method
[RigoDaemon] use systemd-logind shutdown/idle Inhibit() API

Inhibit shutdown or idling (see systemd documentation) during
application management or repository update phases.
[RigoDaemon] import the threading module directly