Taking shard lock earlier in reparenting actions.