use pthread_key_create autopool stack