Fix ordering
Don't go into the nbd_read_ready function when we don't have anything to read
Better handling of variables in these functions
Fix what this comment says