Fix fd leak and blind IO#gets in pwdump import

MSP-10715
Merge branch 'staging/electro-release' into bug/MSP-10715/import-security-issues

Update deps

Conflicts:
	Gemfile
	Gemfile.lock
Land #3585, fix fd leak in pwdump import

Conflicts:
	db/schema.rb