fixed uninitialized lock vector