light: fix hang of logfile update

regression from 0f9f2b40