Thermal-history dependent magnetoelastic transition in (Mn,Fe)2(P,Si)