[test] Don't start elf-dump until lld-core is done writing the output.