Bug 910810: don't read prefs off "main" thread in unittests r=abr