Android: Apply WebSettings in calling thread to avoid race condition