Fix concurrent access. 
Lock should work global and not through a local class instance.