Service Worker: Add UMA for stalled in STOPPING
Detect when a SW is stalled in stopping, and record UMA for that case. This
will help us understand whether the stalled in stopping bug is really fixed.
Only record the UMA for installed workers; otherwise,
workers from update jobs that are discarded immediately
would dominate the data, and they don't affect the actual
user experience.
BUG=504806,499646
Review URL: https://codereview.chromium.org/
1212253003
Cr-Commit-Position: refs/heads/master@{#336760}