Fix dynamic port allocation limit

I made `findNextPort` search circularly rather than ending at `EndPortRange`. `findNextPort` will continue to search for a port until it determines that all the ports and allocated and return ErrAllPortsAllocated.