allowed operating mode to be change when balancing is started, added lock mechanism to not leave balancing state when not enabled
allowed operating mode to be change when balancing is started, added lock mechanism to not leave balancing state when not enabled