Don't open or fstat files twice in llvm-ar.