Make struct signal_task generic and make afs use it.