The end of "Game of Thrones" presents an existential challenge for HBO as it seeks to retain and grow its audience amid rising threats from Netflix, Amazon and other rivals.