greybus: hd: move CPort allocation to host-device code