Fixes issue #3045 with configured source credentials being added to lock.