[native] handle database operations errors in reducer
Summary:
Follow up to D5672.
If there will be an error while processing store operations we want to note this in secure store and kill app, after opening again database will be recreated.
This code introduces CommCoreModule method and calls it when needed.
Test Plan:
Test functionality:
- Cause error in store operation - app should be killed
- Open again - new database should be created
Reviewers: marcin, bartek, inka
Reviewed By: marcin
Subscribers: ashoat, tomek, atul
Differential Revision: https://phab.comm.dev/D6713