Port '_timer0', which prevents pypycore to hang if there are more than 1000
callbacks pending at a time.