Sets a new value of the flag that determines whether the checkbox is locked. If the flag value is equal to true, the checkbox is locked and becomes disabled, otherwise it is enabled and unlocked.