Wrap the port range indefinitely.

Note:
Provides different results from the old function for UIDs *below* @uid_begin.