Near-critical dimers, massive SLE and sine-Gordon field