If not, try pressing one of the brightness keys (increase or decrease) to make the Lock Screen appear again.
If you don’t encounter a bug, try pressing the escape key again then the space bar to bring back the Lock Screen.
Repeat this several times to see if the bug occurs for you.