Lock is not working although Sleep, Shutdown etc. do work.
There is an error message in the Console.app:
This seems to suggest permission problems. Alfred has been enabled in Accessibility, but NOT in Automation. That's another thing that's weird, as Alfred doesn't appear in Automation, like described in this post: https://www.alfredforum.com/topic/12182-solved-alfred-not-in-automation-settings/.