WeWork forecast weak current-quarter revenue in a sign that its business was feeling the heat of mass layoffs as companies reduce their real estate footprint.