Added locks for writes on aggregate level