Amid a tech race with Washington, Beijing is pledging “openness and integration” while increasing its say over who can depart the country.