Prevention of high-luminosity carbon stars by hot bottom burning