How do I lock my mac without the screen going dark or going to the screensaver?
You can create an Automator workflow with a Run Shell Script action containing:

/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend