Dynamic avalanches: rate-controlled switching and race conditions