A Comprehensive Survey of Forgetting in Deep Learning Beyond Continual Learning