Cleanup xetable threading - make it compile (urk).

Change-Id: I966c7b214494c29545b1c4be3a98641bf440e16c
thread-pool: fix waiting until all tasks are complete.

Change-Id: Iaf5a3bf28879f229a223a8760fd878f96958a53c