Hack to run invalidateOptionsMenu out of mainthread