[PATCH 3/3] d2d1: Explicitly cast threading mode to D2D1_FACTORY_TYPE in D2D1CreateDevice.