A sentence like "It's locked" has a basic meaning because it is usable to perform the act of asserting that something is locked.
Meaning is determined by a sentence's potential to play the role a speaker intended. Illocutionary Acts and Sentence Meaning
Acts like stating, describing, or predicting that something is the case. A sentence like "It's locked" has a basic