tests: make threads in punt tests join when finished