avdevice/xcbgrab: wrap non-shm image replies in a buffer ref