fixes to get threading tests running again

now we use the main thread for execution, instead of using it only to fork and join