recently my Dell Inspiron 5675 didn't show the lockscreen so i unplugged it and it showed the lockscreen any people also experiencing this issue
so basically, my lockscreen didn't show up so I had to unplug it then it worked. if you're wondering the operating system its windows 11 maybe that will help