The three-body potential for heavy quark bayrons in lattice QCD