Measuring black hole spin through gravitational lensing of pulsars