CTS testSecondaryClientStreamingBeforePrimary fix

This CL includes following changes:
1) Fixing the timout error in Imagelistener by waiting for an image to
   be available and using SimpleImageReaderListener
2) Fixing the regression introduced in OP_CREATE_SHARED_SESSION command
   by using the stream config array passed by the SharedCameraTest like
   before
3) In OP_START_PREVIEW command use the surfaces passed by the
   SharedCameraTest
4)In test testSecondaryClientStreamingBeforePrimary, removed ImageReader
   stream from java client and Calling CloseNativeClient after
   CloseCameraJavaClient as there was intermittent failure of
   waitUntilDrained. (To be investigated later if it's generic HAL issue
   or specific to shared camera clients: b/397751337)

Flag: com.android.internal.camera.flags.camera_multi_client
Bug: 393588369
Test: Run CTS test SharedCameraTest
Change-Id: I8efc69828f489dcef03fa043a89b31cfedd21002
3 files changed