Ensure that setAdapter() calls happen on the UI thread.

Should fix http://crashes.to/s/a67cf1014d4,
http://crashes.to/s/331900dbb14, http://crashes.to/s/ade5cb10df3.