Core/SAI: Fixed ACTION_SET_EVENT_PHASE, ACTION_RANDOM_PHASE ...

...and ACTION_RANDOM_PHASE_RANGE parameters validation, the parameters were checked as phase indexes instead of phase masks
Indeed that was just below, SMART_EVENT_PHASE_MASK_MAX should be replaced by it.