Change the order of close(fd) and flock(fd, LOCK_UN)
diff --git a/lib/bcc/FileHandle.cpp b/lib/bcc/FileHandle.cpp
index e19d0d1..8ec194a 100644
--- a/lib/bcc/FileHandle.cpp
+++ b/lib/bcc/FileHandle.cpp
@@ -93,6 +93,7 @@
     }
 
     // Good, we have open and lock the file correctly.
+    LOGI("File opened. fd=%d\n", mFD);
     return mFD;
   }
 
@@ -103,8 +104,9 @@
 
 void FileHandle::close() {
   if (mFD >= 0) {
-    ::close(mFD);
     flock(mFD, LOCK_UN);
+    ::close(mFD);
+    LOGI("File closed. fd=%d\n", mFD);
     mFD = -1;
   }
 }