Lock screen not working in 21.10

For GDM3 - what does your login manager look like? If it looks like this then you are using lightdm/slick greeter

For GNOME-Shell - start at this part of the thread Lockscreen not working after update to 21.10 - #12 by fossfreedom