only increment generation when we're making the ->transient transition, fixes #3