Make pep8 happy.
Add test for lock persistence.
Use add instead of gets+cas to initialise uid generator.