Fixes for vif locking mode

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