Lock enforcement

You don't need to worry about enforcing locks, Milton will do that for you at the protocol level. And its probably better if you dont because there's some ambiguity about exactly who/what can operate on a locked resource. Milton has settled on a slightly fuzzy-logic implementation which is known to work across clients but if you do your own enforcement that could interfere.

The one time you should do your own checking for locks is if you want performance optimised deletes of collections.