added lock to avoid that multiple instances running at the same time messing the zone file up