Save thread local objects based on primary managed object context

It is the managed object contexts that aren't thread safe. I was  seeing crashes after calling destroyPersistentStore, since there were still contexts on other threads that relied on the old store, since the store instance was the same.