Hack to run invalidateOptionsMenu out of main thread