lib-util: check for too many combinations in generate_unique_strs()