fastcgi: Use pthread_key_t for thread local vars.