thread-safe `nextId` for all config data