Beijing for years took a hands off approach towards tech firms, but it is now stepping up scrutiny.