XenAPI: Fix new useage of trueorfalse

* Ensure that Xen setup scripts will continue to function when unset
  variables are used in stackrc
* Ensure that the generic functions are sourced in all places that xenrc
  (which sources stackrc) is sourced.

Change-Id: I54eba20733c2e149621b74a1387f0bef14fca12e
diff --git a/tools/xen/xenrc b/tools/xen/xenrc
index cd28234..96f3734 100644
--- a/tools/xen/xenrc
+++ b/tools/xen/xenrc
@@ -91,4 +91,7 @@
 # Set the size to 0 to avoid creation of additional disk.
 XEN_XVDB_SIZE_GB=0
 
+restore_nounset=`set +o | grep nounset`
+set +u
 source ../../stackrc
+$restore_nounset