Fixed race condition in sip.resolve (issue #41)