ntdll/tests: Add test for direct syscalls on x86_64.
ntdll: Add SIGSYS handler to support syscall emulation on macOS Sonoma and later. Adapted from the 'ntdll-Syscall_Emulation' wine-staging patchset.