Replace NSPersistentStoreCoordinator's `lock` and `unlock` methods as they are deprecated in iOS 8.0 and OS X 10.10