Make dummy elements thread_local.

More correct solution is probably simply to throw.