List current sessions with
loginctl list-sessions
Unlock with session number from above command.
loginctl unlock-session
session-number
Or to unlock all sessions do
loginctl list-sessions
More info:
https://askubuntu.com/questions/341014/unlock-login-screen-using-command-line