I am new to MacBook pro..it's for my reference..
http://www.howtogeek.com/howto/32810/how-to-lock-your-mac-os-x-display-when-youre-away/
>Applications > Utilities -> Key Chain Access -> Preferences -> General Tab -> Check 'Show status in Menu bar'
After this you will find lock menu bar on your screen and you can see "Lock Screen" option
http://www.howtogeek.com/howto/32810/how-to-lock-your-mac-os-x-display-when-youre-away/
>Applications > Utilities -> Key Chain Access -> Preferences -> General Tab -> Check 'Show status in Menu bar'
After this you will find lock menu bar on your screen and you can see "Lock Screen" option