made likely_context::getTargetMachine thread safe