Fake __clock_gettime() and similar calls using  __... calls

This breaks potential infinite loops.