Note that this may keep a reference to schema until after pending is complete.
Signals allocComplete when allocation is complete if *pending is true on return
bufferId - The buffer to allocate
type - The type of the buffer (see DBBuffer.h -- only kRAM and kRADIO are supported)
size - The size (in rows) of the buffer
policy - The eviction policy to use with the buffer (see DBBuffer.h)
schema - The schema (layout) of rows in this buffer (expressed as a query)
pending - On return, set to true if the buffer is still being allocated (expect allocComplete if true).
data - is currently unused