Generate TProtoClass also for transient classes.  This fixes ROOT-6487.