std: Handle OS errors when joining threads Also add to the documentation that the `join` method can panic. cc #34971 cc #43539