Get the monotonic handle ID for cross-isolate cancel. Returns 0 if handle is invalid.
int getHandleId(int handle);