AI 144176: To fix the race condition in case "requestCancelDecode"   happens earlier than AutoDecoderCancel object is added   to the gAutoDecoderCancelMutex linked list.   BUG=1692286
AI 144176: To fix the race condition in case "requestCancelDecode"
  happens earlier than AutoDecoderCancel object is added
  to the gAutoDecoderCancelMutex linked list.
  BUG=1692286

Automated import of CL 144176

xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base