Better handling of vensim contexts in multithreaded environment