Before rewriting metadata, create any missing virtual devices

Otherwise the kernel module is confused.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>