feat(sync): add graceful shutdown support to sync operations
Add shutdown_rx parameter to sync_next_bundle to allow cancellation of ongoing sync operations
Modify fetch_operations to support cancellation during retries
Improve rate limiter to handle semaphore closure gracefully