[daemon] Fix unbounded memory/fd growth from eager watching, codegen-regen, and leaked runs (#2520)