update container resize events in sequence, also move it out of exit/cancel loop to prevent blocking.
update container resize events in sequence, also move it out of exit/cancel loop to prevent blocking.

Signed-off-by: Cory Bennett <417e51e5cb662ad598cd30cfd638784666adde3d@netflix.com>

tonistiigi/buildkit_poc,tonistiigi/buildkit_poc