When safesearch is locked, you must input your Google account password to turn it off. After entering your password, go to the Search Settings section of the website and choose the "SafeSearch Filters" link. After that, click "Save" without checking the "Lock SafeSearch" box.