add Lock to struct Ref.
1 file changed