Convective instability of thin flux tubes