Add a function for getting the gralloc handle from a wl_buffer.