templates / branches--on commit lock_ref_sha1_basic(): if locking fails with ENOENT, retry (e5c223e)
   1: this is just to ensure the directory exists.