Hi,
Follow the below Steps:
1. Go to Settings --> "Device" Category --> Display--> "Screen" Category--> Screen timeout --> Set The Time
2. Now again go to Settings--> "Personal" Category--> Lock automatically --> Set the Time
3. Save the settings.
4. Check it after the time you have set...