cgo: fix radix sort out of range bug