Add missing lock