Changed EventualResult.wait to allow the import lock to be held by a different thread