You can do this for free by using Keychain Access. Open Keychain Access (in your Utilities Folder, which is in your Applications folder), and go to preferences. Check the box for Show Status in Menu Bar. You will now see a Padlock in your Menu Bar, click and hold, you will now see a Lock Screen option, select and release. Your screen will now lock, and will need your computer password to open.