Add ddlockd

Somewhere in the great Github migration of 2012, we lost ddlockd. This
is a straight copy from the most recent version I can find.
Merge branch 'release-1.12' into develop

* release-1.12:
  Add ddlockd