X-ray emission around the z = 4.1 radio galaxy TN J1338-1942 and the potential role of far-infrared photons in AGN feedback