Hello, thank you for reaching out to Microsoft Q&A.
Go to Control Panel > Change category to small icons > Power Options > Choose what the Power buttons do (in the left pane) > Click 'Change settings that are currently Unavailable' > Untick the 'Lock Option' and click save changes.
Let me know if you still need more help.