proxy: lock should be above the fields it protects.