Make sure gimp_async_set_wait() and gimp_async_set_cancel() work correctly, even if the set changes in nontrivial ways as a result of waiting-on/canceling individual operations. This is purely theoretic right now, but why not. (cherry picked from commit ec5f4d03)