fixed lock in ctor