clock sync: fix caddy memory management