Multithreading implementation for Core Data in old style