was potentially racy as someone else could obtain the lock in between
makesure and mutex.Lock call.
Changes since last attempt:
Running LXD tests locally ends up with success.
...
==> Deleting all storage pools
Storage pool lxdtest-cjU deleted
==> Checking for locked DB tables
==> Checking for leftover files
==> Checking for leftover DB entries
==> Tearing down directory backend in
/home/caglar/go/src/github.com/lxc/lxd/test/tmp.IQA/cjU
The original code where we were doing following
was potentially racy as someone else could obtain the lock in between makesure and mutex.Lock call.
Changes since last attempt:
==> Test result: success ...