Ok, xidle works fine, but this is a workaround solution, since lumina-deskop is the default desktop I was looking for a solution.
$ xscreensaver-command -lock
xscreensaver-command: locking not enabled."
I see that the problem is with permissions
xscreensaver: 22:14:32: couldn't get password of "user"
xscreensaver: 22:14:32: couldn't get password of "root"
xscreensaver: 22:14:32: locking is disabled (error getting password).
the solution is to give setuid
doas chmod +s /usr/bin/xscreensaver
then everything works fine just have no idea if this is the way it should be
slock also has setUID enabled
while xlock does not, and you define your own password.