[lib] refactor integrity reducer add new thread hashes to use sqlite ops
Summary:
Refactors the integrity reducer to use sqlite ops for adding new thread hashes
Depends on D11249
Test Plan: flow check
Reviewers: kamil, tomek, michal
Reviewed By: kamil, michal
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D11287