app: move some more stuff out of the "now" part of gimp_display_shell_flush()

so it's not needlessly called during painting.