Handle uintptr like uint32 on JS side, but cast it to int32 on syscall.