Created by: edmcman
This can lead to thread local variables being set incorrectly because the TLS data is never copied.
This may not be the cleanest way to fix the problem, but I don't know all the places that dynamo_initialized
is used and I didn't want to move it.