U.S.-listed mainland companies are facing an increasingly unfriendly climate in New York. Shanghai isn’t looking any better.