locking: Use the .class object for the lock