Mac OS X: How do I lock my computer screen?
To require authentication to wake the computer screen:
  1. Go to the Apple menu, select System Preferences...
  2. Locate the Personal section, click Security, and then click General.
  3. Select Require password... after sleep or screen saver begins.
  4. Adjust the amount of delay before a password is required in the pop-up menu.