If you open up Keychain prefs, there is a checkbox under General to Show keychain status in menu bar. If that is checked, you'll see a Lock in the menu bar. You can click on that and choose "Lock Screen" and it will do just that which requires your login password to get back in.