What happens to Cessna electric flaps that are moving when power is lost?
Stays where it is. The mechanism is a leadscrew and like most leadscrews it's "self-locking", which means that it's held in position by frictional forces whenever the motor isn't turning and it can't be back-driven even by substantial loads. The 20 degree (etc) "stops" are just reference positions for which aircraft performance and load limit data have been determined.