lib: chroot_lib: Predicate existence on out_path

Common usages of this method assume some basic filesystem hierarchy
exists, including the ability to utilize tempdir(). Because tempdir()
will be within out_path, let's start asserting its existence too.

This should produce less cryptic failure modes in cases where we fail
this assumption.

BUG=b:265885353
TEST=./run_tests

Change-Id: I981410951dfcfc793a991bd04d1855aa8fa50485
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4497446
Tested-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Brian Norris <briannorris@chromium.org>
diff --git a/api/controller/artifacts_unittest.py b/api/controller/artifacts_unittest.py
index 082a799..faf7ab0 100644
--- a/api/controller/artifacts_unittest.py
+++ b/api/controller/artifacts_unittest.py
@@ -91,6 +91,7 @@
             self.chroot_path, self.sysroot_path.lstrip(os.sep)
         )
         osutils.SafeMakedirs(full_sysroot_path)
+        osutils.SafeMakedirs(self.chroot_out_path)
 
         # All requests use same response type.
         self.response = artifacts_pb2.BundleResponse()