Use The Force
Some time ago, I set "3 finger drag" on my mouse to "Lock my machine". That worked about 50% of the time first try. The rest of the time it would take me to my dashboard, change virtual desktops, or go back in my browser history.
The correct way, as in all things, is to use The Force.