Beijing has an agreement with Pyongyang to return asylum seekers , but has allowed many to travel to South Korea through third countries .