must add lock to parent before setting reference attrs
Merge branch 'master' of github.com:Pylons/substanced