engines/rbd: use rbd_aio_is_complete() and add TRIM support