Tennis and global events collided at two tournaments. A sport which shies away from politics had to confront it.