both: implement session locking

The client has a new Element to set a screen lock per output, with
the ability to unlock the session. Additionally the session can be
locked and unlocked using logind's dbus interface or loginctl.