Reduce intermittent spec failures by making VueJS resource interceptor decrement outstanding resource counts when HTTP response is received
Before the count would be reduced 500 ms after a DOM update tick, which could cause race conditions since the DatabaseCleaner
could run in the middle of a Rails controller handling the response.
Partial fix to #21197 (closed) and other intermittent spec failures.