Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/tikv/pd/blob/release-7.1/OWNERS)~~ [HuSharp]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
This is an automated cherry-pick of #8268
What problem does this PR solve?
Issue Number: Close #8267
What is changed and how does it work?
Because there is no happens-before guarantee for different goroutine, maybe meet memory reordering
Check List
Tests
Release note