On the eve of a visit to San Francisco by China’s Xi Jinping, the city somehow, someway cleared out downtown homeless encampments.