Handling broken coredata migrations

Fixes #2582

/cc @sendhil  + @astralbodies 

This fix will reset Simperium's metadata, whenever a Core Data migration fails. However, it will not recover notifications for users who already experienced this glitch: a logout + login will be required for them.

Thank you!