when enumerating preferences, build up the list before the callback is called, instead of while the hash table is being enumerated git-svn-id: svn://10.0.0.236/trunk@65384 18797224-902f-48f8-a5cc-f745e15eee43