[clang][scan-deps] fix new test for readonly work trees
Our setup runs tests with bazel in such a way that the work tree is
readonly, which was causing this test to fail because it couldn't write
the .o file. This fixes that, which was new in 15c3793cdf94 when this
test was introduced.