Add locking around the attributes list.