Make sure that you have LXCFS installed and working. This should normally get /proc/cpuinfo to only show those correct cores (and I believe also renumber them).
That said, there is no way to fully re-number cores/threads, you’ll always see the actual value in /proc/self/status or under /sys. That’s just how the kernel works.