Frequency-domain measurement of the spin-imbalance lifetime in superconductors