Prevent duplicate buffer indices

Track which buffer indices are in use to prevent duplicates.

BUG: 31831808
TEST: Test app runs, enqueue errors no longer showing up in logs.
Change-Id: I319f9a1906170c861e194e357bdb57fab81d8c34
2 files changed