make sure joined threads are removed from the threads datastructure in the parent thread ( fork )