tracing: Move syscalls metadata handling from arch to core