Gets the buffer at idx, ensuring it is a writable buffer.
You must make sure that idx does not exceed the number of
the buffer at idx in group.
The returned buffer remains valid as long as list is valid and
the buffer is not removed from the list.