If you want a quick way to lock your screen on your Mac do the following:
- Go to System Preferences/Security & Privacy
- Click on the checkbox next to “Require password … after sleep or screen save begins”
- Select “immediately” in the dropdown within the aforementioned selection.
You will be asked to authenticate to make the change
Now you will be able to immediately lock your machine by pressing Control-Shift-Eject.