Use AutoCloseable for structs named Locked*