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 are allocated and return `ErrAllPortsAllocated`.