thpool: bootstrap the threadpool package
thpool: sampling: port to the threadpool package
thpool: move storage's threadpool into the package

with no code changes whatsoever except the fixing of the imports.