Made upgradable lock thread local state immutable
Reused starting lock state instances for efficiency
Created Maven project
Added .settings to .gitignore
Improved test for lock upgrade