Sample path large deviations for a class of Markov chains related to disordered mean field models