IIRC it is just having locks with exclusive constructors, which take previous locks’ guards (by ownership?).
That way you can never lock lock B if you have not received a guard aka lock from lock A prior. Ensured on the type level.
I suppose doing this at scale is a real challenge.