ring: fix return of new port id on creation