Please try to run the command: gsettings set org.gnome.desktop.lockdown disable-lock-screen "false"
And test it again.
Please try to run the command: desktop. lockdown disable-lock-screen "false"
gsettings set org.gnome.
And test it again.