linux: implement sigaltstack(2) on arm64
... by making it machine-independent.
Reviewed By: dchagin
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D31286
(cherry picked from commit 30c6d982190482857883fc96eefafcc6fd769fa0)