General relativity, Lauricella's hypergeometric function $F_D$ and the theory of braids