Fix execution thread of invalidateOptionsMenu