Lyapunov stability of generalized ribosome flow models