Spurious shear in weak lensing with the large synoptic survey telescope