Tiffany Haddish has joked that withholding sex could solve racism as "when a white man ain't gettin' no sex, things change".