[PATCH 08/17] Lock program_log_lock closer to where the log is written.