Add defer cancel for Soledad sync.

- Move all the defer cancelling to a method.
- Add `X_defer = None` for the defers after being cancelled.