shutdown: control+option+command+eject
restart: control+command+eject
sleep: option+command+eject
One can set System Preferences --> security --> require password immediately, then press the "sleep" key combination will lock the computer (like "win+L" on Windows)