Afrofuturism, a mix of science fiction, magic realism and liberation politics, has shaped some hip-hop artists’ work for decades.