Separation-dependent localization in a two-impurity spin-boson model