Global stability and resolvent analyses for characterizing the attenuation of boundary-layer flow instabilities by visco-elastic patches