BaseThread.distance - rebuild linked lists before computing; closes #122

Signed-off-by: Michal Toman <mtoman@redhat.com>