Anomalous first-order transition in Nd0.5Sr0.5MnO3: an interplay between kinetic arrest and thermodynamic transitions