How to unlock screen from script in KDE Plasma 5?
Not really my answer, but it might be useful to someone else too.
It comes from https://forum.kde.org/viewtopic.php?f=289&t=130691#p350000 and it works on latest archlinux with kde 5.7
loginctl lock-session
loginctl unlock-session