WIP: androidmedia: Avoid issues with buffer cleanup while flushing
This is the patch I'm currently using to work around #1281, I don't think it's anywhere near mergeable so marked as WIP.
TL;DR of the issue is releasing buffers from GLSyncMeta callbacks while the amcvideodec state is semi-invalidated during flushing triggered by a caps change.