[PATCH 18/24] gtrace: Add sink-specific buffer alloc/free callbacks