clean up mach syscall dispatch and make sure that td_emuldata and p_emuldata are set before calling any mach syscalls