[Decode] Refine decode reference associated buffer management to avoid potential shared buffer overwritten

Refine decode reference associated buffer management to avoid potential shared buffer overwritten.
1. Adding reference count for AV1 shared buffer, reuse shared buffer only when reference count is zero.
2. Reusing retired temporal buffer other than empty buffer to improve the robustness with error stream.
3. Correct typo.
4 files changed