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

Closes #59