The first Olympic Games in the world’s most populous country highlight how difficult it has been over the years to keep sports and politics apart.