disabled thread on problem code

exchanged pthread_create for direct calls on code prone to locking issue