How to keep lock screen always on when connected to external monitor and charging
You can use a utility called KeepingYouAwake. The app sits in the Menu bar and prevents your computer from sleeping (but lets the computer sleep normally when the lid is closed).
With the app running, your lock screen will not turn off. The app is simple to use with necessary configuration options available.