[LOCK]

Add lock structure for shared variables