fix deadlock (recursive locking) in AttributeMethods::define_attribut…