Do you mean you set the option "lock server" and now you can't connect to your local server because the server is locked?
You could simply remove the tick you've set, if that is possible or do it the manual way:
Open the console by pressing "~" or "^" or whatever the key is that is between Escape and Tab on your Keyboard. Then enter "sv_locked 0" without the quotation marks.