Fix a problem when wrapping around in the vchan circular buffer

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>