Fix bugs on ContactMetadataProvider.

1) Modify update method to support insert sync state if it's
not existing.
2) If the account is not in CP2, do nothing when upserting metadata
sync and sync state, do not throw an exception.

BUG 24139392

Change-Id: I9edb8c63bf8b8793a1d479fe41d7cc9f0bed72eb
2 files changed