Honor requests for minimal lock count
Honor requests for minimal lock count

Change lock allocation in mcpu to honor the required minimum
of locks to allocate in opportunistic lock allocation.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Hrvoje Ribicic <be5828fca31f89218048bec4189e30a581aa65da@google.com>

Cherry-picked from f3f1fc574671d41fefb05661b01d4ff93312eef7.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Hrvoje Ribicic <be5828fca31f89218048bec4189e30a581aa65da@google.com>

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