[lib] Check the timestamps when updating thread subscription
Summary:
Check the timestamp and don't update the subscription when the timestamp is more recent than the operation.
https://linear.app/comm/issue/ENG-9119/update-changethreadsubscriptionspec
Depends on D13233
Test Plan: Perform a couple of thread subscription operations and check if the state is correct.
Reviewers: kamil, inka, marcin
Reviewed By: marcin
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13234