IfValue updates the value if the current value matches the given value.
IfVersion updates the value if the version matches the given version.
New creates a new Lock primitive for the given partitions The value will be created in one of the given partitions.