Lattice hadron matrix elements with the Schrödinger functional: the case of the first moment of non-singlet quark density