lock will be managed by daemonize.py