Release locks before wiping disks during instance creation
Release locks before wiping disks during instance creation

Ganeti 2.3 introduced an optional feature to overwrite an instance's
disks on creation. Unfortunately the code kept all locks while doing the
wipe, slowing down the creation of multiple instances in parallel.

This patch changes the code to wipe the disks only after releasing the
locks.

Signed-off-by: Michael Hanselmann <68b67885ff74281219b4a4be33cc20fd45078d7c@google.com>
Reviewed-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>

bitemyapp/ganeti,bitemyapp/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,grnet/snf-ganeti,mbakke/ganeti,mbakke/ganeti,yiannist/ganeti,andir/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,dimara/ganeti,leshchevds/ganeti,andir/ganeti,yiannist/ganeti,ganeti/ganeti,onponomarev/ganeti,mbakke/ganeti,ganeti/ganeti,grnet/snf-ganeti,dimara/ganeti,apyrgio/snf-ganeti,leshchevds/ganeti,apyrgio/ganeti,leshchevds/ganeti,yiannist/ganeti,apyrgio/ganeti,onponomarev/ganeti,apyrgio/snf-ganeti