The BuildDir test uses RealFS and would fail when /tmp/compile_flags.txt
or /tmp/compile_commands.json would exist, since it would read it for
files not covered by the CDB it creates and then fail an IsEmpty() test.
With this change, we create a compile_flags.txt file simply to prevent
CDB from looking for it in parent directory.
Long-term, all CDB implementations should use VFS and the test should
use MemoryFS instead, and be fully hermetic, but for now this will do.