防止data race

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>