No need to lock here. The item is not visible to any other threads until services_discovery_Add(Sub)Item().