consul: Refactor txn handling in state store
consul: fixing a unit test
consul: Ensure node/service/check registration is in a single txn