Anisotropic ferroelectric distortion effects on the RKKY interaction in topological crystalline insulators