tests: add aarch64 support

This switches to using GET/SETREGSET which should work on all archs, and
adds support for aarch64.

Based on patch by AKASHI Takahiro <takahiro.akashi@linaro.org>.

Signed-off-by: Kees Cook <keescook@chromium.org>