Make Service Worker registration's shared state thread-safe between main threads and asynchronous algorithms