issue #20456: lock has moved out of the attributes