Kinematic dynamos and resolution limits for smoothed particle magnetohydrodynamics