retry joining threads INSTEAD of cancelling using SA_RESTART flag