[ARMv8] Add some missing tests for DSB/DMB.
Add ATTRIBUTE_UNUSED to silence unused-function warning in release
builds.