Generate API_EXIT instrumentation event in all cases.

It previously wasn't generated for synchronous methods
without a return value.

Test: mma, hidl_test
Change-Id: I8cec7e58fe05636de8a45a760575f207fb8c9dae
diff --git a/generateCpp.cpp b/generateCpp.cpp
index 69b5f8e..a4af202 100644
--- a/generateCpp.cpp
+++ b/generateCpp.cpp
@@ -1627,9 +1627,17 @@
             out << "_hidl_cb(*_hidl_reply);\n";
 
             out.unindent();
-            out << "}\n";
+            out << "});\n\n";
+        } else {
+            out << ");\n\n";
+            status_t status = generateCppInstrumentationCall(
+                    out,
+                    InstrumentationEvent::SERVER_API_EXIT,
+                    method);
+            if (status != OK) {
+                return status;
+            }
         }
-        out << ");\n\n";
 
         if (returnsValue) {
             out << "if (!_hidl_callbackCalled) {\n";