Made UpgradableLock serializable