Loss of memory of random functions of Markov chains and Lyapunov exponents