Avoid race between chef-client queue getting emptied and chef-client run