Cortex-A does not contain primask, there's 7th bit in the CPSR register,
that contains this information. Fixes#1851.
Renames primask variables to interrupts_disabled.
This includes a generic critical section implementation. This
implementation also allow a user to start a critical section while
interrupts are already disabled.