I used to lock my Windows XP laptop easily with Win+L key combination. When I switched to MacBook I searched for a inbuilt option like that. It wasn't there.
After some searching I found LockTight. Now I use the key combination Shift + Option + Command + L to lock the screen when moving away from the Laptop. Now easier but atleast now I have a way to lock the Macbook.