Correct logic of surface delete

The old surface delete logic is incorrect when destroying surface bound
to a different thread.

BUG: 37101765

Test: cts -m CtsMediaTestCases -t android.media.cts.DecodeAccuracyTest
Change-Id: Icdec052abbe46e3292088b79ebb779ee24581ed4
1 file changed
tree: 82f1546575b07fd5c4108a0496a2e6ad9e70168e
  1. host/
  2. shared/
  3. system/
  4. tests/
  5. Android.mk
  6. common.mk
  7. README