add lock

Change-Id: I7eeb687a8071c8f82cadbd51beb4668e371b2d4c