make the ModelSpace contexts Thread local