PR 47571 Weakref trickery for clock_gettime()