templates / branches--on commit stop leaking lock structs in some simple cases (bfffb48)
   1: this is just to ensure the directory exists.