[PATCH vkd3d 12/12] vkd3d: Factor out vkd3d_join_thread().