China’s decision whether to repatriate defectors has often been contingent on the health of its relationship with North Korea.