Validate uniqueness constraints for new data. In HA.

Support concurrent updates of data affected by the constraints on different instances in a cluster.
Acquire distributed locks to ensure mutual exclusion.