ARM: add C function to switch to non-secure state