[lib] Refactor entries queue in DMOpsQueueHandler
Summary: https://linear.app/comm/issue/ENG-9808/consider-modifying-the-queues-logic-to-be-more-resilient
Test Plan: Add entities to the entries queue by calling processDMOps from useProcessDMOperation and verify entities are processed.
Reviewers: kamil, tomek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13859