I am sure this is known, but this has been a major issue of mine for a VERY long time. When I am running a Windows system, I always issue a Windows Key + L to lock when I step away. Having to deal with hot corners and hacking it to work on macOS was an issue.
Now you can lock without needing to do all of that. It is in the Apple menu at the top. Just issue a Control + Command + Q.
Now you can lock without needing to do all of that. It is in the Apple menu at the top. Just issue a Control + Command + Q.