Fix not setting the persist flag on newly registered channels when the permanent channel mode is set prior to registering or during registration