Add a hack to get around changes to joining threads in ruby 2.0.