What are the criticisms of lockfiles? I've used lockfiles more or less successfully in Rails, Elixir, and of late, Node. I thought it was a proven (if imperfect) idea...
This approach actually adds tons of flexibility... not sure it’s needed, but you could return different lock data based on whatever logic you needed