Fix the unittest for locking.
Fix the unittest for locking.

Reviewed-by: imsnah



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