Convert sources to lock format before comparing.

If the Gemfile sources lock to the same result as the current locked
sources, they haven't changed.