Somewhere in the great Github migration of 2012, we lost ddlockd. This is a straight copy from the most recent version I can find.