Disable autoflush for all of add_gmail_attrs().

Otherwise a distinct transaction is created for each updated tag on a thread,
which is annoying.
Fix client sync error when diffing against old transactions.

transaction.public_snapshot may not be set for old transactions, so don't try
to compare against it if it's None.