lib: config descriptor, remove lambda functions in add_or_replace_descriptor_and_sort() - for review