Service for interacting with the local attachment records.
Watcher for changes to attachments table. Once a change is detected it will initiate a sync of the attachments
Executes a callback with an exclusive lock on all attachment operations. This helps prevent race conditions between different updates.