In order to make it so that your computer won’t lock itself after a few minutes, do this:
Navigate down the tree to HKEY_CURRENT_USER > Software Policies > Microsoft > Windows > Control Panel > Desktop and look for an entry ScreenSaverIsSecure. You want to make sure the value for ScreenSaverIsSecure is 0 (zero).
Exit regedit; you’re done!