Linear polarization of x-rays emitted in the decay of highly-charged ions via overlapping resonances