fix(pipelines/pingcap/tidb): use checkoutRefsWithCacheLock in tidb pipelines (#4482)pipelines (commit: e0f52a1)