[lib] Make sure PeerToPeerMessageHandler is run after persisted state is read
Depends on D13814
Test Plan:
- Use logs to verify if PeerToPeerMessageHandler waits for persisted state
- Comment out sqliteAPI.removeInboundP2PMessages and send some messages and restart the app
- Errors like invalid operation should appear
- After this patch there should be less of them
Reviewers: tomek, kamil, ashoat
Reviewed By: ashoat
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13802