Use a readwrite lock instead of synchronization for account attributes.