Port '_timer0', for more than 1000 callbacks pending

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