When executed without sandbox, target- and host- configured targets are created in the same execution root with the same names. (#321)
When executed without sandbox, target- and host- configured targets are created in the same execution root with the same names. (#321)

Apparently, it is not the problem for build outputs, but deps directory that is created by script.
What is even more problematic is that this directory can be accessed while building this target in parallel for different configurations. So even if we clean it before using, we might break the build of the parallel target.

Solution: create temp directory to be used as deps directory.
(Additionally, this demonstrates the benefits of sandboxed execution.)
bazelbuild/rules_foreign_cc,bazelbuild/rules_foreign_cc,bazelbuild/rules_foreign_cc,bazelbuild/rules_foreign_cc