Computer locking is a security measure that is common for all Windows Operating system. Whether your computer stays idle for a specific time, or you lock it by yourself (by pressing Win key+L, for eample), the computer becomes "locked" and you have to enter your user name and password to unlock it.
While being effective security tool, it can also be annoying. In order to disable or enable it, we can use Windows Group Policy editing tool.
To start Group Policy editor, go to Start, then Run and type "gpedit.msc". As an alternative, you can type it into search bar.
When you are there, navigate to User Configuration=> Administrative Templates=> System=> Ctrl+Alt+Del Options

Double click on "Remove lock computer" and choose "Enabled" or "Disabled". Click Apply and close the window, you're done!