RKKY oscillations in the spin relaxation rates of atomic scale nanomagnets