[lib] add ops for message store threads
Summary: Operations to remove, replace, and remove all threads.
Test Plan: Process each operation and check if it works.
Reviewers: tomek, marcin, atul
Reviewed By: tomek
Subscribers: ashoat, atul
Differential Revision: https://phab.comm.dev/D7396