This renames UidRange -> UidRangeEntry, and reintroduces UidRange which contains the array of UidRangeEntry and its size. No fucntional changes, just refactoring.
If uid_map contains many lines, then the previous logic takes O(n^2 log n), This makes O(n log n).
To make the functions defined in the files usable by libsystemd library.