Control-Command-Q locks the screen right away and shows the login window, without logging you out or closing anything.