Thermal-Mechanical Wave Propagation in Inviscid Non-Uniform Flow Confined by Heating Pipeline and Implications for Transit-Time Flow Meter