Losses widen at KB Home