Being confined to a bed for months brought isolation and unspeakable pain, but it opened up Nnedi Okorafor’s mind to a universe of characters, ideas and stories.