Fix source credentials storage in Gemfile.lock

This PR enables storage for source credentials in Gemfile.lock again.

This feature has been accidentally broken in #3049.