Fix clearTimeout() for Node.js mode

In Node, `timerId` returned by `setTimeout()` is an object with `.ref()`/`.unref()`, and its `.id` field is the actual timer id. `clearTimeout()` needs to use the actual timer id to remove a timeout.