Initialize lock