CCodec: Delay stop using surface until the end of release()

Delay stop using surface until the end of release() in order not to
interfere internal Codec work.

Bug: 242685100
Test: atest android.media.codec.cts.MediaCodecTest
Test: atest android.media.decoder.cts.AdaptivePlaybackTest
Change-Id: I9a4639d5cfd58feb91655713191e4e75bae06b24
1 file changed