lock must be transient in Transform for Transform to be Serializable