Fix testStabilizationOneShotPreviewCallback

We should terminate looper when video stabilization is not supported.

Bug: 123039910
Test: pass this case on reef device
Change-Id: I5d07fcd13bed3c4b99d6d4a587d232c922b5cf20
diff --git a/tests/camera/src/android/hardware/cts/CameraTest.java b/tests/camera/src/android/hardware/cts/CameraTest.java
index fe8f111..f6502fc 100644
--- a/tests/camera/src/android/hardware/cts/CameraTest.java
+++ b/tests/camera/src/android/hardware/cts/CameraTest.java
@@ -512,6 +512,7 @@
         initializeMessageLooper(cameraId);
         Parameters params = mCamera.getParameters();
         if(!params.isVideoStabilizationSupported()) {
+            terminateMessageLooper();
             return;
         }
         //Check whether we can support preview callbacks along with stabilization