support multi-threaded coredata scenarios