fix defect7654 that  the encoder won't generate IDR when temporal layer setting changes

reviewed at: https://rbcommons.com/s/OpenH264/r/532/