[lib] Use stack-based virSchedParameter to avoid a free() problem.