installd_dexopt_test: fix close of owned file descriptor.

fdopen takes ownership of the file descriptor passed in, so the file
descriptor must not be closed directly.

Bug: http://b/139092341
Test: treehugger
Change-Id: I1132bfe7b1b8bcea80fd264ae7832603cdec69cd
diff --git a/cmds/installd/tests/installd_dexopt_test.cpp b/cmds/installd/tests/installd_dexopt_test.cpp
index 73780ec..0212bc5 100644
--- a/cmds/installd/tests/installd_dexopt_test.cpp
+++ b/cmds/installd/tests/installd_dexopt_test.cpp
@@ -275,7 +275,7 @@
             writer.StartEntry("primary.prof", ZipWriter::kCompress);
             writer.FinishEntry();
             writer.Finish();
-            close(fd);
+            fclose(file);
           }
 
         // Create the app user data.