Lockscreen not working after update to 21.10

Make sure you are using slick-greeter not gdm3.

If you don’t want to use gnome-shell then removing this package will make the lock screen work

sudo apt purge gnome-shell-common