add httpd lock/unlock