templates / branches--on commit close_lock_file(): if close fails, roll back (8e86c15)
   1: this is just to ensure the directory exists.