h264: Reset last_pocs in case of reference or frame number inconsistencies