Mass funeral of slain supreme leader highlights imminent leadership transition and geopolitical risk.