curl: implement .bdrv_detach/attach_aio_context()