adds joinable to c threads