Assert all locks are free in `Balanacer.gather`.

See #262.