duktape: Implement js_isrunning()

duktape has no equivalent of JS_IsRunning() so use the state of the
timeout tracking bits to approximate it.
1 job for master in 6 minutes and 57 seconds (queued for 1 second)