Demonstration of an issue with pthread_create overridiing