scheduler: fixed batch unlocking if circuits container empty