Made all fields final in UpgradableLock class
Added check for serialization proxy on deserialization
Made nested classes final
Added non-null initial value to thread-local hold count