core: don't allow enabling if unit is masked