Most probably an error occurs when disabling Dash-to-Dock (which happens when the locking the session).
Could you provide (relevant) errors from
sudo journalctl /usr/bin/gnome-shell
Most probably an error occurs when disabling Dash-to-Dock (which happens when the locking the session).
Could you provide (relevant) errors from
sudo journalctl /usr/bin/ gnome-shell