Added a fix for using nested contexts on iOS 5. It will block the main thread while saving, but it should not trigger the Core Data deadlock bug.