another workaround would be

yum --setopt=persistdir=/tmp/yum --servername=x.foo.com --schedule update

which avoids changes in config file (doesn't fix the real problem though...)