Add Arch templates

Templatize miscellaneous things in `record_syscall.cc`, with the happy result that x86_arch no longer appears in this file.