Fix race condition causing crash on startup
Fix race condition causing crash on startup

GetDefaultStoragePartition does a call to ChromeAppCacheService::InitializeOnIOThread
which uses AtomBrowserContext::CreateURLRequestJobFactor which uses protocol_handler_interceptor_.
Most of the time this thread is called after protocol_handler_interceptor_ is created but not on some cases and mainly on Windows for whatever reason.

Fix https://github.com/brave/browser-laptop/issues/6793

Auditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@bridiver

brave/electron,brave/muon,brave/electron,brave/muon,brave/electron,brave/electron,brave/muon,brave/electron,brave/muon,brave/muon,brave/electron,brave/muon