server: Add support for retrieving results of queued ioctls once they are done.