Update the cache before raising an event to a listener, not after
Update the cache before raising an event to a listener, not after

When a children-changed, property-change, or state-changed event is fired,
update the cache before calling callbacks rather than after.  This ensures
that queries will return the correct information.

GNOME/at-spi2-core,gloob/gloob-s-at-spi2-core,gloob/gloob-s-at-spi2-core,gloob/gloob-s-at-spi2-core,GNOME/at-spi2-core,GNOME/at-spi2-core