Can't lock the computer

Hello, I can’t lock my computer either using win+L keys or using the menu in the top right. Neither has any affect whats so ever. My laptop is fairly old but am hoping not to upgrade.
Its a Lenovo ThinkPad E470. Hope some one can help. This is really annoying when on the move.

If you need anything else to help please let me know.
Thanks,

Have you checked if you have this package installed?

sudo apt purge gnome-shell-common
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package ‘gnome-shell-common’ is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

No affect…

Thanks,

… and is gnome-screensaver installed?

yeah that’s installed, gnome-screensaver is already the newest version (3.6.1-13ubuntu4).

this turned out to be, strangely the lock screen being disabled. The below command fixed it.

gsettings set org.gnome.desktop.lockdown disable-lock-screen false