Instrumentiation for thread functions with local variable _instr_tid storing pthread_t of executing thread.