null pointer in pthread_create() procedure.