Joint Flashback Adaptation for Forgetting-Resistant Instruction Tuning