Effects of inelastic multistep processes on (p, t) reactions in a transition region between rare-earth nuclei and double-magic 208Pb