On the transition from thermoacoustic convection to diffusion in a near-critical fluid