Just fyi, you can generate a csv of your domains and authorization codes by doing:
Domain Management > Tools Tab > Exportable List > click Add New Export button > All your domains > and make sure to select "Authorization Code".
As for locking or unlocking, in Domain Management you should be able to just click the select all checkmark, and click the Lock button to set the lock level on all of them.
None of that should be an issue, even when transferring in, a bunch of registrars offer a bulk transfer option. The real pains start to set in if you have gTLDs which have special gotchas when transferring or changing contact information/ownership. I probably wouldn't even have been able to transfer my .it domains out of godaddy if not for the fact I have a dual citizenship which gave me some freedom with the regulations -- though it still took me hours of trial and error.