Add addReleaseFence API to ConsumerBase.

This API is used by classes that inherited from ConsumerBase. With the
refactor to have an instance intead of inheriting from it this change
makes the migration simpler. Although we might remove it later on. More
information at go/warren-buffers.

Bug: 342197847
Test: build and run
Flag: EXEMPT - no behavior change
Change-Id: I99da5b1bafae5b0042f8ac1ba5533ca6e5000fe6
2 files changed