Fix thread backend selection