HWComposer: Fix an fd leak on boot with HDMI

When the device is booting with an attached external display, every
frame leaks a file descriptor until the display manager enables the
external display, resulting in hundreds of leaked descriptors. This
plugs the leak.

Change-Id: Ib7e2af3638dab28c2ed04c02ddf9c485edf2bb9d
diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp
index 546b047..94e8c59 100644
--- a/libhwc/hwc.cpp
+++ b/libhwc/hwc.cpp
@@ -1616,6 +1616,10 @@
                     contents->retireFenceFd = merged;
                 }
             } else {
+                if (layer.acquireFenceFd >= 0) {
+                    close(layer.acquireFenceFd);
+                    layer.acquireFenceFd = -1;
+                }
                 hdmi_hide_layer(pdev, pdev->hdmi_layers[1]);
             }
         }