A resonant spin lifetime transistor