ldso: use pthread_t rather than kernel tid to track ctor visitor