Sets the locked flag value for the layer object. This flag determines whether visibility of the layer can be changed when the document is viewed. If the visibility can be changed, the flag equals true; otherwise, it equals false.