templates / branches--on commit gc: run pre-detach operations under lock (c45af94)
   1: this is just to ensure the directory exists.