make the distributed lock stateful.