[PATCH v2 33/35] qemuDomainSetIOThreadParams: Move typed parameter validation to top level