Forward port of #2919 Keep the dispatcher inhabitants count balanced.