Correct bug with instantiating _local_context as a thread.local.

_local_context is initialized within the init context method.  This is
causing the thread local to be incorrectly initialized and
consequently get corrupted.