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