The first state visit to China by a North Korean leader in over four decades comes as Pyongyang seeks to boost ties with its biggest trading partner.