add lock

Signed-off-by: shangaijun <shangaijun@aliyun.com>