Ensure a tls key is only generated once - wrap create & destroy in a mutex.