templates / branches--on commit Close files opened by lock_file() before unlinking. (4723ee9)
   1: this is just to ensure the directory exists.