The Ultraviolet Critical Dimension of Half-Maximal Supergravity at Three Loops