g10: Be careful to not be in a transaction during long operations