Check flash region security attribute

For every flash page, there is a security attribute that controls if that region is secure or non-secure.

Check the corresponding SPU.FLASHREGION[n].PERM (0x5003600 + (n*4)), where n is the flash page. If the 4th bit is 0, the flash region is in non-secure, otherwise it is secure.