test: work around lack of coherence

When we layer one device on top of another, writes to the underlying
device aren't reflected immediately through the upper device. Therefore
we write to the loop device before creating the /dev/mapper device on
top.

Note we don't need ot call 'mknods' because create is now synchronous.

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