Magnetic dilution effect and topological phase transitions in (Mn$_{1-x}$Pb$_x$)Bi$_2$Te$_4$