[Hack] Do not assert main thread in Preferences::InitStaticMembers