llvm-ar: Clean up memory management with OwningPtr.