Fix cpu affinity with partitionable slots #3597