/var/lock clears itself on boot nowadays, move to /var/local.
https://bugzilla.hcoop.net/show_bug.cgi?id=1298
function create_dav_locks () {
# Make per-user apache DAV lock directory -- the directory must be
# both user and group-writable, which is silly.
- execute_on_web_nodes sudo mkdir -p /var/lock/apache2/dav/$NEWUSER
+ execute_on_web_nodes sudo mkdir -p /var/local/domtool/apache2/dav/$NEWUSER
execute_on_web_nodes sudo chown $NEWUSER:www-data /var/lock/apache2/dav/$NEWUSER
execute_on_web_nodes sudo chmod ug=rwx,o= /var/lock/apache2/dav/$NEWUSER
}