traps: x86_64: make io_check_error equal to the one on i386