Move write_lock from attrs to each attribute