Spin lifetime in small ensembles of electron spins measured by magnetic resonance force microscopy