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

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

Bug: 227223204
Test: atest android.media.codec.cts.MediaCodecTest
Test: atest android.media.decoder.cts.AdaptivePlaybackTest
Change-Id: I3d12869e51ecee7c01a796c54f9fd26b0ed8e712
3 files changed