Fix deadlock bug: stop update stream after stopping invalidator