[Hack] Do not assert main thread in libpref