altos/stm: Allow use basepri instead of primask for masking interrupts