My tip: System Preferences -> Desktop & Screen Saver -> Screen Saver -> Hot Corners -> Bottom Left Corner (or whichever you prefer) -> Put Display To Sleep (or Lock Screen if you prefer).
Adding caveat : Keep the dock size small to avoid interfering with Hot Corners and if you use VM in seamless mode try not to place any action(VM guest panel) near the macOS Hot Corners.