templates / branches--on commit lockfile: allow reopening a closed but still locked file (93dcaea)
   1: this is just to ensure the directory exists.