Measuring the galaxy–galaxy-mass three-point correlation function with weak gravitational lensing